import request from '@/utils/request'

export const patientLs = (params: any) =>
  request({
    url: '/patient/ls',
    method: 'get',
    params
  })

export const patientinfo = (params: any) =>
  request({
    url: '/patient/patientinfo',
    method: 'get',
    params
  })

export const cost = (params: any) =>
  request({
    url: '/patient/cost',
    method: 'get',
    params
  })

export const dec = (params: any) =>
  request({
    url: '/patient/dec',
    method: 'get',
    params
  })

export const opt = (params: any) =>
  request({
    url: '/patient/opt',
    method: 'get',
    params
  });


export const getProTypeByPatId = (params: any) =>
  request({
    url: '/patient/getProTypeByPatId',
    method: 'get',
    params
  });

export const proc4cost = (params: any) =>
  request({
    url: '/patient/proc4cost',
    method: 'get',
    params
  });
export const findProTypeAndNameByPatId = (params: any) =>
  request({
    url: '/patient/findProTypeAndNameByPatId',
    method: 'get',
    params
  });

export const patBasicCostById = (params: any) =>
  request({
    url: '/patient/pat-basiccostById',
    method: 'get',
    params
  });

export const patResult = (params: any) =>
  request({
    url: '/patient/pat-result',
    method: 'get',
    params
  });

/**
 * 病人超范围项目
 * @param params 
 * @returns 
 */

export const projectOutScope = (params: any) =>
  request.post('/patient/project-out-scope', params)
// request({
//   url: '/patient/project-out-scope',
//   method: 'post',
//   params
// });


export const patDayInfo = (params: any) =>
  request({
    url: '/patient/pat-day-info',
    method: 'get',
    params
  });


export const sync = (params: any) =>
  request({
    url: '/patient/sync',
    method: 'get',
    params
  });



export const zdjl = (params: any) =>
  request({
    url: '/patient/zdjl',
    method: 'get',
    params
  });


export const sljl = (params: any) =>
  request({
    url: '/patient/sljl',
    method: 'get',
    params
  });


/**
 * 病人费用信息
 * @param params 
 * @returns 
 */
export const costSummary = (params: any) =>
  request({
    url: '/patient/cost-summary',
    method: 'get',
    params
  });



export const dept = (params: any) =>
  request({
    url: '/patient/dept',
    method: 'get',
    params
  });

export const dept2doc = (params: any) =>
  request({
    url: '/patient/dept2doc',
    method: 'get',
    params
  });

export const doctor = (params: any) =>
  request({
    url: '/patient/doctor',
    method: 'get',
    params
  });


export const formWord = (params: any) =>
  request({
    url: '/patient/form-word',
    responseType: 'blob',
    method: 'get',
    params
  });

export const checkWay = (params: any) =>
  request({
    url: '/patient/check-way',
    method: 'get',
    params
  });

export const PatWarning = (params: any) =>
  request({
    url: '/patient/warning',
    method: 'get',
    params
  })


export const zd2path = (params: any) =>
  request({
    url: '/patient/zd2path',
    method: 'get',
    params
  })

  export const proljzxqk = (params: any) =>
  request({
    url: '/patient/proljzxqk',
    method: 'get',
    params
  })

  export const drgwaring = (params: any) =>
  request({
    url: '/patient/drg-waring',
    method: 'get',
    params
  })


  export const PreWarnMsg = (params: any) =>
  request({
    url: '/patient/pre-warn-msg',
    method: 'get',
    params
  })
  export const drgkssearch = (params: any) =>
  request({
    url: '/patient/drgkssearch',
    method: 'get',
    params
  })
  export const zdjb = (params: any) =>
  request({
    url: '/patient/zdjb',
    method: 'get',
    params
  })

  export const zdjbbar = (params: any) =>
  request({
    url: '/patient/zdjbbar',
    method: 'get',
    params
  })
//zdjb
  //drgkssearch

  
export const addInTemplate = (params: any) =>
request({
  url: '/api/save_mbmx',
  method: 'post',
  data: params
})

/* 留言相关功能 */

//查询留言消息
export const getRemark = (params: any) =>
request({
  url: 'tpl/get-msg',
  method: 'post',
  data: params
})
//保存留言消息
export const saveRemark = (params: any) =>
request({
  url: 'tpl/save-msg',
  method: 'post',
  data: params
})
//编辑留言消息 ||回复消息
export const editRemark = (params: any) =>
request({
  url: 'tpl/up-msg',
  method: 'post',
  data: params
})
//疑问项
export const PgjgDetial = (params: any) =>
request({
  url: '/tpl/PgjgDetial',
  method: 'post',
  data: params
})

//yufxpg

export const yufxpg = (params: any) =>
request({
  url: '/patient/yufxpg',
  method: 'get',
  params
})
